package org.jeecg.modules.market.service.impl;

import org.jeecg.modules.market.entity.CompanyPurchase;
import org.jeecg.modules.market.mapper.CompanyPurchaseMapper;
import org.jeecg.modules.market.service.ICompanyPurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 企业收购信息
 * @Author: jeecg-boot
 * @Date:   2019-08-29
 * @Version: V1.0
 */
@Service
public class CompanyPurchaseServiceImpl extends ServiceImpl<CompanyPurchaseMapper, CompanyPurchase> implements ICompanyPurchaseService {
    @Autowired
    private CompanyPurchaseMapper companyPurchaseMapper;

    public List<Map<String,Object>> avgCompanyPrice(String year){
        return companyPurchaseMapper.avgCompanyPrice(year);
    }

    public List<Map<String,Object>> groupByCompanyNumber(){
        return companyPurchaseMapper.groupByCompanyNumber();
    }
}
